package org.goldfish.demo02;

class HtmlGenerator {
    public StringBuffer div(StringBuffer content){
        StringBuffer div = new StringBuffer("<div>");
        div.append(content);
        div.append("</div>");
        return div;
    }
    public StringBuffer body(StringBuffer content){
        StringBuffer div = new StringBuffer("<body>");
        div.append(content);
        div.append("</body>");
        return div;
    }
    public StringBuffer html(StringBuffer content){
        StringBuffer div = new StringBuffer("<!DOCTYPE html>");
        div.append("<html>");
        div.append(content);
        div.append("</html>");
        return div;
    }
}
